package net.atomarrow.bs.domain;

import java.util.Date;

import net.atomarrow.db.annotation.FieldType;
import net.atomarrow.db.annotation.NotNull;
import net.atomarrow.db.enums.Type;
import net.atomarrow.domains.Domain;

public class TbTopic extends Domain{
    private int id;
    @NotNull
    @FieldType(type = Type.VARCHAR, length = 255)
    private String name;//主题名称
    @NotNull
    @FieldType(type = Type.VARCHAR, length = 255)
    private String  content;//主题描述
    @NotNull
    private Integer chapterCount;//主题章节数
    @NotNull
    private int userId;//创建者
    @NotNull
    @FieldType(type=Type.DATETIME)
    private Date createTime;//创建时间
    @FieldType(type = Type.VARCHAR, length = 255)
    private String img;//主题展示图像
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public int getUserId() {
        return userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getImg() {
        return img;
    }
    public void setImg(String img) {
        this.img = img;
    }
    
    public static void main(String[] args) {
    	new TbTopic().generateAllSingleTable();
	}
	public Integer getChapterCount() {
		return chapterCount;
	}
	public void setChapterCount(Integer chapterCount) {
		this.chapterCount = chapterCount;
	}
    

}
